import request from '@/utils/request'

//获取购物车信息
export function myshoppingcart() {
	return request({
		url: '/service/info/myshoppingcart',
		method: 'get'
	})
}

//修改购物车购买数量
export function editInfo(data) {
	return request({
		url: '/service/info/app/edit',
		method: 'put',
		data: data
	})
}


//加入购物车
export function tocart(data) {
	return request({
		url: '/service/info/tocart',
		method: 'post',
		data: data
	})
}


//删除购物车
export function removeToCart(uuids) {
	return request({
		url: '/service/info/app/'+uuids,
		method: 'delete'
	})
}